﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppCode/MasterPages/Employee.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="AppCode_Employee_ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .auto-style1 {
            width: 136px;
        }
        .auto-style2 {
            width: 136px;
            height: 22px;
        }
        .auto-style3 {
            text-align: left;
            height: 22px;
        }
        .auto-style4 {
            height: 22px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 700px; margin: 0 auto; margin-left: 300px;">
        <p style="font-size: 19px; font-weight: bold; margin-top: 40px; margin-bottom: 10px; margin-left: 70px;">Change Password</p>
        <table style="border-spacing:30px 10px">
            <tr>
                <td class="auto-style1">
                    <asp:Label ID="Label1" runat="server" Text="Old Password:"></asp:Label></td>
                <td class="txt-lt">
                    <asp:TextBox ID="txtOldpass" runat="server" TextMode="Password"></asp:TextBox></td>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Old password is invalid" ForeColor="#CC0000"></asp:Label>
                    <asp:Label ID="Label7" runat="server" Text="Old password is required" ForeColor="#CC0000"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">
                    <asp:Label ID="Label3" runat="server" Text="New Password:"></asp:Label></td>
                <td class="txt-lt">
                    <asp:TextBox ID="txtNewPass" runat="server" TextMode="Password"></asp:TextBox></td>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="New password is required:" ForeColor="#CC0000"></asp:Label>
                    <asp:Label ID="Label8" runat="server" ForeColor="#CC0000" Text="Password must have 8-&gt;10 character  and have at least 1 digit or  1 alphabet"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="auto-style2">
                    <asp:Label ID="Label5" runat="server" Text="Confirm Password:"></asp:Label></td>
                <td class="auto-style3">
                    <asp:TextBox ID="txtConfirm" runat="server" TextMode="Password"></asp:TextBox></td>
                <td class="auto-style4">
                    <asp:Label ID="Label6" runat="server" Text="Password is not match" ForeColor="#CC0000"></asp:Label></td>
            </tr>
            <tr>
                <td class="auto-style1"></td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="Update" Height="30px" OnClick="Button1_Click" Width="80px" /></td>
            </tr>
        </table>
        <p style="color:red;margin-left:100px; font-weight:bold" runat="server" id="success">Change password successfully</p>
    </div>
</asp:Content>

